{% extends 'page_layout_single.html' %}
{% block layout_content %}
<div class="four">
    <div class="left">
        {% for picture in page.picture_set.all|slice:":2" %}
        {% include 'picture_block.html' with picture=picture page=page%}
        {% empty %}
        {% include 'no_pictures_block.html' with page=page %}
        {% endfor %}
    </div>
    <div class="right">
        {% for picture in page.picture_set.all|slice:"2:4" %}
        {% include 'picture_block.html' with picture=picture page=page%}
        {% endfor %}

        {% with length=page.picture_set.all|length %}
        {% if length < 4 and length > 0 %}
        {% include 'no_picture_block.html' with page=page %}
        {% endif %}
        {% endwith %}
    </div>
</div>
{% endblock %}